package com.example.forum.services;

import com.example.forum.model.ArticleReply;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: wenjingyuan
 * @Date: 2023/09/27/20:45
 * @Description:
 */
public interface IArticleReplyService {
    /**
     * 创建回复
     * @param articleReply
     */
    @Transactional
    void create(ArticleReply articleReply);

    /**
     * 根据帖子id来查询回复列表
     * @param articleId
     * @return
     */
    List<ArticleReply> selectByArticleId(Long articleId);
}
